package com.zmm.common.valid.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义身份证 参数校验
 * @author 900045
 * @description:
 * @name IdentityCardNumber
 * @date By 2021-07-07 09:20:59
 */
@Documented
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IdentityCardNumberValidator.class)
public @interface IdentityCardNumber {
	
	String message() default "身份证号码不合法";
	
	Class<?>[] groups() default {};
	
	Class<? extends Payload>[] payload() default {};
}
